﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using GiveMeMenu.Common.Command;
using GiveMeMenu.Interface.ServiceProvider.ObjectModel;
using SignalR;
using SignalR.Hubs;

namespace GiveMeMenu.Notifier
{
    public class Notifier
    {
        public static IHubContext Context = GlobalHost.ConnectionManager.GetHubContext<GMMHub.GMMHub>();
        public static void AddDish(Dish dish)
        {
            Context.Clients[GroupValue.GroupDish].addDish(dish);
        }
    }
}